package com.canlihao.ui.utils.glide;


import android.content.Context;

import com.bumptech.glide.Glide;
import com.bumptech.glide.Registry;
import com.bumptech.glide.module.LibraryGlideModule;

import okhttp3.OkHttpClient;

public class UnsafeOkHttpGlideModule extends LibraryGlideModule {

        @Override
        public void registerComponents(Context context, Glide glide, Registry registry) {
            OkHttpClient client = UnsafeOkHttpClient.getUnsafeOkHttpClient();
            /*registry.replace(GlideUrl.class, InputStream.class,
                    new OkHttpUrlLoader.Factory(client));*/
    }
}

